﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TomNet.Core.Data;

namespace TomNet.IMSC.Model.DbModels.Account
{
    /// <summary>
    /// 佣金流水表
    /// </summary>
    public class BrokerageRunnings : EntityBase<int>
    {
        /// <summary>
        /// 模块ID
        /// </summary>
        public int ModuleID { get; set; }
        /// <summary>
        /// 流水ID
        /// </summary>
        public int RunningsID { get; set; }
        /// <summary>
        /// 佣金类型ID
        /// </summary>
        public int BrokerageTypeID { get; set; }
        /// <summary>
        /// 金额
        /// </summary>
        [Column(TypeName = "money")]
        public decimal Amount { get; set; }
        /// <summary>
        /// 状态  0待确认   1已确认    2已审核    3已结算    4已结清   5待退款
        /// </summary>
        public int State { get; set; }
        /// <summary>
        /// 确认时间
        /// </summary>
        public DateTime ConfirmTime { get; set; }
        /// <summary>
        /// 确认操作员
        /// </summary>
        public int ConfirmStaffID { get; set; }
        /// <summary>
        /// 审核时间
        /// </summary>
        public DateTime AuditingTime { get; set; }
        /// <summary>
        /// 审核操作员
        /// </summary>
        public int AuditingStaffID { get; set; }
        /// <summary>
        /// 是否开发票
        /// </summary>
        public int IsReceipt { get; set; }
        /// <summary>
        /// 税款
        /// </summary>
        public decimal Tax { get; set; }
    }
}
